Fix bug #15841 with assertion violations due to newline cache.
authorEli Zaretskii <eliz@gnu.org>
Mon, 18 Nov 2013 16:29:49 +0000 (18:29 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 18 Nov 2013 16:29:49 +0000 (18:29 +0200)
commit1043a53f11e729f42d7ed44f7e106ae0d4540b09
treeb2910bea2b3f994bbf417d29533baa8068397665
parentc0c89609a039deb964b1f439f4abef8b136e6f55
Fix bug #15841 with assertion violations due to newline cache.

 src/insdel.c (invalidate_buffer_caches): New function, consolidated
 from part of prepare_to_modify_buffer.
 (insert_from_gap, prepare_to_modify_buffer):
 src/coding.c (code_convert_region, code_convert_string): Call
 invalidate_buffer_caches.
 src/lisp.h (invalidate_buffer_caches): Add prototype.
src/ChangeLog
src/coding.c
src/insdel.c
src/lisp.h